#ifndef FROGWIDGET_H
#define FROGWIDGET_H

#include <QGLWidget>
#include <QKeyEvent>

class Widget : public QGLWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();
protected:
    void LoadGLTextures(QString filename,GLuint);
    void DrawCubic(float x,float y,float z,float roll);
    void DrawMask(float x,float y,float z,float roll);
    void LightInit();
    void BlendInit();
private:
    void keyPressEvent(QKeyEvent* e);

    GLuint mTexture[5];
    float mRotate_x;
    float mRotate_y;
    float mRotate_z;
    float mMove_z;


};
#endif // FROGWIDGET_H
